package logic;

import data.IPurchaseDAO;
import data.JDBCPurchaseDAO;


public class PurchaseManager implements IPurchaseManager{
	
	private IPurchaseDAO pdao = new JDBCPurchaseDAO();
	
	public synchronized boolean putPurchase(ShoppingKart s) {
        pdao.insertPurchase(s);
        return true;
    }

	public synchronized ShoppingKart selectPurchase(String idShoppingKart) {
		return pdao.selectPurchase(idShoppingKart);
	}
	

}
